﻿using Gj;

public class TimeOutHelper : NodeHelper
{
    public DateHelper date;
    public NodeHelper[] list;

    protected override BindDataType bindDataType => BindDataType.Bool;

    protected override void BindData(bool b)
    {
        if (b)
            date.soundType = SoundType.TimeOut;
        else
            date.soundType = SoundType.None;

        for (var i = 0; i < list.Length; i++) list[i].SetData(b);
    }
}